<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglibs.jsp" %>

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta content="always" name="referrer">
    <title>SOP下载</title>
    <link href="${ctxstatic}/css/custom-style.css" rel="stylesheet" type="text/css">


    <%@ include file="/WEB-INF/views/include/common.jsp" %>
    <style>
        /*a  upload */
        .a-upload {
            padding: 4px 10px;
            height: 20px;
            line-height: 20px;
            position: relative;
            cursor: pointer;
            color: #888;
            background: #fafafa;
            border: 1px solid #ddd;
            border-radius: 4px;
            overflow: hidden;
            display: inline-block;
            *display: inline;
            *zoom: 1
        }

        .a-upload input {
            position: absolute;
            font-size: 100px;
            right: 0;
            top: 0;
            opacity: 0;
            filter: alpha(opacity=0);
            cursor: pointer
        }

        .a-upload:hover {
            color: #444;
            background: #eee;
            border-color: #ccc;
            text-decoration: none
        }

        #form_apply tr {
            line-height: 35px;
            margin-bottom: 4px;
        }

        #form_apply tr input, #form_apply select, #form_apply a {
            width: 144px;
        }

        .combo, .textbox {
            border: 1px solid #b9b8b8;
        }
    </style>
    <script>
        var username = "${user.username}";
    </script>
</head>

<body>

<div class="easyui-layout" data-options="fit:true,border:false,minWidth:560">
    <div data-options="region:'west',border:true" style="height:100%;width: 45%;">
        <div data-options="region:'north',border:true" style="padding: 10px 5px;">
            <span>
                <input id="bom_moudle_num_s" class="easyui-textbox" data-options="label:'BOM编码'"
                           style="width:250px;"/>
                <input id="fini_bom" name="queryType" type="radio" value="0" checked="checked">产成品
                <input id="bom_moudle" name="queryType" type="radio" value="1">子模块
                        <!--<input id="operator_man_s" class="easyui-textbox" data-options="label:'操作人员'" style="width:300px;"/>-->
                <a href="javascript:void(0)" onclick="queryRecord()" class="easyui-linkbutton button-blue"
                       style="width: 70px;margin-left: 10px;">查&nbsp;询</a>
            </span>
        </div>
        <div data-options="region:'south',border:false" style="height:90%;width: 100%;">
            <table id="list" style="width:100%;height:100%;">
            </table>
            <div id="toolbar">
                <a id="ExportAllBomData" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add'">导出全部BOM关系Excel表</a>
                <%--        <a id="editBtn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit'">修改</a>--%>
                <%-- <a id="deleteBtn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove'">删除</a>--%>
            </div>
        </div>
    </div>


    <div data-options="region:'center',border:true" style="height:100%">
        <div data-options="region:'north',border:false" style="padding: 10px 5px;">
            <input id="modelName" class="easyui-textbox" data-options="label:'机型名称'" style="width:160px;"/>
            <a href="javascript:void(0)" onclick="queryModelList()" class="easyui-linkbutton button-blue"
               style="width: 70px;margin-left: 10px;">查&nbsp;询</a>
        </div>
        <div data-options="region:'south',border:false" style="height:90%;width: 100%;">
            <table id="model_list" style="width:100%;height:100%;">
            </table>
        </div>
    </div>
</div>
</body>
<script src="${ctxstatic}/js/base64.min.js" type="text/javascript"></script>
<script src="${ctxstatic}/plugin/easyui/themes/insdep/expand/jquery-easyui-datagridview/datagrid-groupview.js"
        type="text/javascript"></script>
<script src="${ctxstatic}/js/sop/sopDownload.js" type="text/javascript"></script>
</html>